{include file="header.html"}
<div> 
{include file='tejia/nav.html'}
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   
   <td>名称</td>
    
 
   <td align="center">店铺</td>
   <td align="center">开始时间</td>
   
   <td align="center">价格</td>
   <td align="center">市场价</td>
   <td align="center">时间</td>
   <td align="center">图片</td>
   <td align="center">类型</td>
   <td align="center">总数</td>
   <td align="center">购买数</td>
   <td align="center">限制购买数</td>
   <td align="center">状态</td>
   
<td align="center">操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.id}</td>
    
   <td>{$c.title}</td>
    
  
   <td align="center">{$c.shop_name}</td>
   <td align="center">{$c.starttime|date:Y-m-d}</td>
    
   <td align="center">{$c.price}</td>
   <td align="center">{$c.market_price}</td>
   <td align="center">{$c.dateline|date:Y-m-d}</td>
   <td align="center"><img src="{$c.imgurl|images_site}.100x100.jpg" width="60" onerror="err_imgurl(this)"></td> 
   <td align="center">{$c.type_name}</td> 
   <td align="center">{$c.total_num}</td>
   <td align="center">{$c.buy_num}</td>
   <td align="center">{$c.limit_num}</td>
   <td align="center"> {if $c.status eq 2}
   <img src='{$skins}images/yes.gif' class="ajax_no" url='{$appadmin}?m=tejia&a=status&id={$c.id}&status=98' rurl='{$appadmin}?m=tejia&a=status&id={$c.id}&status=2'>
    {else}
    <img src='{$skins}images/no.gif' class="ajax_yes" url='{$appadmin}?m=tejia&a=status&id={$c.id}&status=2' rurl='{$appadmin}?m=tejia&a=status&id={$c.id}&status=98'>
    {/if}</td>
 
<td><a href="{$appadmin}?m=tejia&a=add&id={$c.id}">编辑</a> 
<a href="/index.php?m=tejia&a=show&id={$c.id}" target="_blank">查看</a> 
<a href="javascript:;" class="delete" url="{$appadmin}?m=tejia&a=delete&id={$c.id}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div> 
{include file="footer.html"}